<!--#include file="Config.asp"-->
<!--#include file="emp_is.asp"-->
<%
id=Trim(Request("id"))
C_ID=Int(Request("C_ID"))
CP_ID=Int(Request("CP_ID"))
P_ID=Int(Request("P_ID"))
Name=Trim(Request("Name"))
Info=Trim(Request("Info"))
action=Trim(Request("action"))

'保存LogSave的数据
If action="SaveLog" And C_ID<>0 Then
Sql="Select * from [CRM_ListLog] Where (ID is null)"
rs.Open Sql,Conn,1,3
rs.addNew
rs("CP_ID")=CP_ID
rs("C_ID")=C_ID
rs("Info")=Info
rs("EMP_ID")=session("emp_ID")
rs("addTime") =now()
rs.Update
rs.Close
response.redirect Request.ServerVariables("Http_referer")
End If

'保存 SaveOPLink 的数据
If action="SaveOPLink" And C_ID<>0 And p_id<>0 Then
Sql="Select * from CRM_PersonLink Where (ID is null)"
rs.Open Sql,Conn,1,3
rs.addNew
rs("P_ID")=P_ID
rs("C_ID")=C_ID
rs("EMP_ID")=session("emp_ID")
rs("Timeadd") =now()
rs.Update
rs.Close
'conn.execute (sql)
response.redirect Request.ServerVariables("Http_referer")
End If
%>
